package com.example.demo.mapper;

import com.example.demo.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author :蕉绿
 * @Date : 2023/3/4 9:11
 * @Version : V1.0
 * @Description :
 */
@Mapper
public interface UserMapper {

    int add(UserInfo userinfo);
    int add2(UserInfo userInfo);
    int add3(UserInfo userInfo);

    int update(@Param("id") Integer id);
    int update2(UserInfo userInfo);


    UserInfo selectByName(@Param("username")String username);



    int deleteByName(@Param("username")String username);

    int dels(List<Integer> ids);


}
